package com.ruoyi.product.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 products
 * 
 * @author ruoyi
 * @date 2025-06-13
 */
public class Products extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long productId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String productName;
    @Excel(name = "商户名")
    private String userName;

    /** 分类id */
    private Long categoryId;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long stockQuantity;

    /** 二级分类 */
    @Excel(name = "二级分类")
    private String categoryName;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 图片链接 */
    @Excel(name = "图片链接")
    private String imageUrl;

    /** 可购买？ */
    @Excel(name = "可购买？")
    private String isAvailable;

    /** 分类信息 */
    private List<Categorie> categorieList;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setStockQuantity(Long stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Long getStockQuantity() 
    {
        return stockQuantity;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setIsAvailable(String isAvailable) 
    {
        this.isAvailable = isAvailable;
    }

    public String getIsAvailable() 
    {
        return isAvailable;
    }

    public List<Categorie> getCategorieList()
    {
        return categorieList;
    }

    public void setCategorieList(List<Categorie> categorieList)
    {
        this.categorieList = categorieList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
                .append("userName", getUserName())
            .append("categoryId", getCategoryId())
            .append("description", getDescription())
            .append("price", getPrice())
            .append("stockQuantity", getStockQuantity())
            .append("categoryName", getCategoryName())
            .append("brand", getBrand())
            .append("imageUrl", getImageUrl())
            .append("isAvailable", getIsAvailable())
            .append("categorieList", getCategorieList())
            .toString();
    }
}
